import http from './http';

// 获取热门推荐信息
const recommended = () => http.get('/api/subscriptions/recommended_collections');

// 获取新闻列表
const trending = () => http.get('/api/trending/now');

// 获取新闻详情
const detail = id => http.get(`/api/p/${id}`);

export default {
    recommended,
    trending,
    detail
};